Skip to content

fix(aggregator): gate pool-item updatedAt with isIsoDate (#5202) - #9039

Merged
dezren39 merged 1 commit into
mainfrom
queue/8902-5202-pool-updatedat
Nov 12, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/8902-5202-pool-updatedat

Conversation

@dezren39

@dezren39 dezren39 commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Closes #5202.

isProjectPoolItem gated updatedAt with a bare typeof === "string" check, so impossible/non-ISO stamps passed the feed gate, were copied verbatim into GhItem.updatedAt, and rolled over in derive.ts's Date.parse momentum math (2026-02-30 → Mar 2), fabricating this-week activity.

Fix (scope per #5202): a present non-empty updatedAt must now satisfy isIsoDate from validate.ts — the same real-calendar gate the sibling validators use. '' counts as absent (the collector emits '' for a missing GraphQL stamp, projects.ts:185), and an absent field stays valid. No other fields change; derive.ts thresholds untouched.

Tests: new gate test in test/projects.test.ts (impossible days 2026-02-29/02-30/04-31, "March 2, 2026", "not-a-date" refused; ''/absent/2024-02-29/full ISO accepted). Runs: projects+validate 121 pass; feed+contract-collector+contract-corpus 98 pass.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 12, 2026 21:21
@coderabbitai

coderabbitai Bot commented Nov 12, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 47 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b63f434e-0631-4b03-bcbb-72d23b542305
Commits

Reviewing files that changed from the base of the PR and between febd7fa and 4dfc9d5.

Files selected for processing: 2

  • pm-stack/aggregator/src/projects.ts
  • pm-stack/aggregator/test/projects.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T21:23:27.741374Z 4dfc9d5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 338c6cf into main Nov 12, 2026
10 checks passed
@dezren39
dezren39 deleted the queue/8902-5202-pool-updatedat branch November 12, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pm-stack(aggregator): isProjectPoolItem accepts impossible/non-ISO updatedAt — pool items carry rolled dates into momentum and board-recency math

1 participant